// routes/shopRoutes.js
const express = require('express');
const { getShops, getShopById } = require('../controllers/shopController');
const { auth } = require('../middleware/auth');

const router = express.Router();

// 所有餐厅相关路由都需要用户已登录
router.use(auth);

// 获取餐厅列表
router.get('/', getShops);

// 获取单个餐厅详情
router.get('/:id', getShopById);

module.exports = router;